<include file="../header" />
<body class="J_scroll_fixed">
    <script>


    </script>
<form class="well form-search" method="post" style="float:left" action="{:U('customer/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            疾病：{:getEnumSelectWidget($categoryIdEnum, "cus#category_id", $category_id, 0)}
            排序：{:getEnumSelectWidget($diseaseEnum, "c#disease", $disease, 0)}
            用户昵称：<input type="text" name="cus#nickname-like" value="{$nickname}" />
            用户id：<input type="text" name="cus#customer_id-like" value="{$customer_id}" />
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('customer/index')}">重置</a>
        </span>
<br><br>
            <span>{$summary}</span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th> </th>
            <th>ID</th>
            <th>用户</th>
            <!--<th>生日</th>-->
            <th>病症</th>
            <th>医生、医院</th>
            <th>诊断</th>
            <th>城市</th>
            <th>I币</th>
            <th>脑瘫</th>
            <th>脊柱侧弯</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="userList" item="vo">
            <tr>
                <td style="width:28px;"><a href='{:U("customer/updateInfo",array("id"=>$vo["customer_id"]))}'><img src="{$vo.headimgurl}"/></a></td>
                <td>{$vo.customer_id}</td>
                <td>姓名：{$vo.nickname} ({$vo.realname})，性别：{$vo.sex}<br/>电话：{$vo.mobile}</td>
                <!--<td>{$vo.birthday}</td>-->
                <td>{$vo.category_name}</td>
                <td>{$vo.doctor_name}<br/>{$vo.hospital_name}</td>
                <td>{$vo.diagnosis}</td>
                <td>{$vo.city}</td>
                <td>{$vo.point}</td>
                <td>{$vo.disease_1}</td>
                <td>{$vo.disease_2}</td>

                <td>
                    <if condition = "$vo['is_doctor'] eq $statusEnum['NO']">
                        <a class="btn btn-success" href='{:U("customer/becomeDoctor",array("id"=>$vo["customer_id"]))}'>标示为医生</a>
                    </if>
                    <if condition = "$vo['is_company'] eq $statusEnum['NO']">
                        <a class="btn btn-success" href='{:U("customer/becomeCompany",array("id"=>$vo["customer_id"]))}'>标示为合作商</a>
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>